var Main = {
	data() {
		return {
			repform: {
				getPerson: '',
				custID: '',
				repID: '',
				repphone: '',
				repname: '',
				gdchlassity: '',
				reptel: '',
				proID: '',
				getman: '',
				texterrorDescription:'',
				textcommunication:'',
				radioguarantee:'',
				alljindu:'',
				rocost:'',
				hasgetcost:'',
				radiosatus:'',
				roprofit:'',
				textcommunication:''
			},
			customer:[],
			/*custoptions: [{
				value: '选项1',
				label: '张三'
			}, {
				value: '选项2',
				label: '李四'
			}, {
				value: '选项3',
				label: '王五'
			}, {
				value: '选项4',
				label: '赵二'
			}],*/
			proIDoptions: [{
				value: '选项1',
				label: '电脑'
			}, {
				value: '选项2',
				label: '手机'
			}],
			getmanoptions: [{
				value: '选项1',
				label: 'rose'
			}, {
				value: '选项2',
				label: 'mike'
			}],
			alljinduoptions: [{
					value: '选项1',
					label: '全部数据'
				}, {
					value: '选项2',
					label: '接件'
				}, {
					value: '选项3',
					label: '待检测'
				}, {
					value: '选项4',
					label: '待与客户确认'
				}, {
					value: '选项5',
					label: '待维修'
				}, {
					value: '选项6',
					label: '待沟通'
				}, {
					value: '选项7',
					label: '维修中'
				}, {
					value: '选项8',
					label: '待交付'
				}, {
					value: '选项9',
					label: '已交付'
				}],
			dialogFormVisible: false,
			reprules: {
				custID: [{
					required: true,
					message: '请选择对应客户',
					trigger: 'change'
				}],
				proID: [{
					required: true,
					message: '请选择维修产品',
					trigger: 'change'
				}],
				getman: [{
					required: true,
					message: '请选择承接人',
					trigger: 'change'
				}],
				radiosatus:[{
					required: true,
					message: '请选择状态',
					trigger: 'change'
				}]
			},
			/* 日期选择 */
			pickerOptions1: {
				disabledDate(time) {
					return time.getTime() > Date.now();
				},
				shortcuts: [{
					text: '今天',
					onClick(picker) {
						picker.$emit('pick', new Date());
					}
				}, {
					text: '昨天',
					onClick(picker) {
						const date = new Date();
						date.setTime(date.getTime() - 3600 * 1000 * 24);
						picker.$emit('pick', date);
					}
				}, {
					text: '一周前',
					onClick(picker) {
						const date = new Date();
						date.setTime(date.getTime() - 3600 * 1000 * 24 * 7);
						picker.$emit('pick', date);
					}
				}]
			},
			gettoday: new Date(),
			gettime: new Date(),
			prostarttoday: '',
			prosalettoday: '',
			paytoday:''
		};
	},
	methods:{
	/*	//跳转修改页面
		updateForm() {
			axios.post("/aftersale/repair",
					//参数转换
//					Qs.stringify(this.comform, {
//						arrayFormat: 'brackets'
//					})
					//id:
					//ajax请求成功的回调函数
				).then(function(v) {
					console.log("回调成功，获取了服务器端返回的值v");
					console.log(v);
				}).catch(function() {
					alert("出错了");
				});
		},
		//返回上级页面，关闭当前页面
		returnForm() {
			var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
			parent.layer.close(index); //再执行关闭
		}*/
	}
};
var Ctor = Vue.extend(Main)
new Ctor().$mount('#app')